From: Florian Müllner Date: Fri, 5 Apr 2019 16:24:09 +0000 (+0200) Subject: extensionPrefs: Fix pref button appearance X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~861^2^2~9 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5d9f80bc735921089d2a5c03d84264d5df883c57;p=gnome-shell.git extensionPrefs: Fix pref button appearance After the Adwaita refresh, the button shows up oval rather than circular. To address this, make sure that the "image-button" class is applied as well by using the dedicated setter function. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/482 --- diff --git a/js/extensionPrefs/main.js b/js/extensionPrefs/main.js index 438788f1d..43efa95e9 100644 --- a/js/extensionPrefs/main.js +++ b/js/extensionPrefs/main.js @@ -551,9 +551,9 @@ class ExtensionRow extends Gtk.ListBoxRow { let button = new Gtk.Button({ valign: Gtk.Align.CENTER, no_show_all: true }); - button.add(new Gtk.Image({ icon_name: 'emblem-system-symbolic', - icon_size: Gtk.IconSize.BUTTON, - visible: true })); + button.set_image(new Gtk.Image({ icon_name: 'emblem-system-symbolic', + icon_size: Gtk.IconSize.BUTTON, + visible: true })); button.get_style_context().add_class('circular'); hbox.add(button);